<?php
include_once("../config.php");
$uid = $_GET['uid'];
//$id = $_GET['id'];
$yj = $_GET['yj'];
//$zt = $_GET['zt'];
$uid = str_ireplace($search, '', $uid);
$yj = str_ireplace($search, '', $yj);

$zt=intval($_GET['zt']);
$id=intval($_GET['id']);

$sql = "select status,xxzx from wenti where id=$id";
$requ = mysqli_query($con,$sql);
$rs = mysqli_fetch_array($requ);
if(($rs['status']!=0&&$rs['status']!=11)||!empty($rs['xxzx'])){
	die('{"status":"0","msg":"此单已被其他管理员审核"}');
}


$sql = "update wenti set status=$zt,xxzx='$uid',xxzxyj='$yj' where id=$id";
mysqli_query($con,$sql);
if(mysqli_affected_rows($con)){
	$result = '{"status":"1","msg":"ok"}';
}else{
	$result = '{"status":"-1","msg":"操作失败，请重试"}';
}
echo $result;

